<template>
	<view class="balance-page">
		<view class="balance-item">
			<image src="../../static/img/tixianyuebeijing.png" mode="aspectFill"></image>
			<view class="balance-cont">
				<view class="balace-title">
					提现余额(USDT)
				</view>
				<view class="balace-number">
					{{accountInfo.accountBalance}}
				</view>
			</view>

		</view>
		<view class="balance-item">
			<image src="../../static/img/touziyuebeijing.png" mode="aspectFill"></image>
			<view class="balance-cont">
				<view class="balace-title">
					投资余额(USDT)
				</view>
				<view class="balace-number">
					{{accountInfo.investBalance}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				accountInfo: '',
			}
		},
		onLoad() {
			this.getMemberInfo();
		},
		methods: {

			getMemberInfo() {
				var that = this;
				uni.$uv.http.get('/member/getMemberInfo').then(res => {
					that.accountInfo = res.data;
				});
			},

		}
	}
</script>

<style scoped lang="less">
	.balance-page {
		padding: 40rpx;
		box-sizing: border-box;
	}

	.balance-item {
		width: 100%;
		height: 245rpx;
		border-radius: 20rpx;
		overflow: hidden;
		position: relative;
		margin-bottom: 32rpx;
		padding: 0px 32rpx;
		box-sizing: border-box;

		image {
			position: absolute;
			top: 0px;
			left: 0px;
			width: 100%;
			height: 100%;
			z-index: 1;
		}

		.balance-cont {
			position: relative;
			z-index: 2;
			padding-top: 44rpx;
			color: #fff;

			.balace-title {
				margin-bottom: 38rpx;

			}

			.balace-number {
				font-size: 53rpx;
				font-weight: bold;
			}
		}
	}
</style>